package modelLayer;


/**
 * Write a description of class Person here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Person
{
    // instance variables - replace the example below with your own
    private String cpr;
    private String name;
    private String address;
    private String postalCode;
    private String city;
    private String phone;

    /**
     * Constructor for objects of class Person
     */
    public Person(String cpr, String name, String address, String postalCode, String city, String phone)
    {
        // initialise instance variables
        this.cpr = cpr;
        this.name = name;
        this.address = address;
        this.postalCode = postalCode;
        this.city = city;
        this.phone = phone;
    }
    
    // Get fields
    
    public String getCpr() 
    {
        return cpr;
    }
    public String getName() 
    {
        return name;
    }
    public String getAddress() 
    {
        return address;
    }
    public String getPostalCode() 
    {
        return postalCode;
    }
    public String getCity() 
    {
        return city;
    }
    public String getPhone() 
    {
        return phone;
    }
    
    // Set fields
    
    public void setCpr(String newCpr) 
    {
        cpr = newCpr;
    }
    public void setName(String newName) 
    {
        name = newName;
    }
    public void setAddress(String newAddress)
    {
        address = newAddress;
    }
    public void setPostalCode(String newPostalCode)
    {
        postalCode = newPostalCode;
    }
    public void setCity(String newCity)
    {
        city = newCity;
    }
    public void setPhone(String newPhone) 
    {
        phone = newPhone;
    }
    

    }
